﻿@{
    ViewBag.Title = "ActiveAccount";
}

<div class="payment-message">
    @if(ViewBag.SubmitForm)
    {
        <div class="redirect"><img src="/images/redirect.gif" /></div>
    }
    else
    {
        <h3>Thank you for your registration. To <span>ACTIVE</span> your account, Please make payment below:</h3>
    }
    <div class="payment-section">
        @if (ViewBag.SubmitForm)
        {            
            <form name="_xclick" action="@ViewBag.PaypalURL" method="post">
	            <input type="hidden" name="cmd" value="_xclick">
	            <input type="hidden" name="business" value="@ViewBag.Business">
	            <input type="hidden" name="item_name" value="@ViewBag.ItemName">
	            <input type="hidden" name="currency_code" value="@ViewBag.Currecy">
	            <input type="hidden" name="amount" value="@ViewBag.Amount">
	            <input type="hidden" name="email" value="@ViewBag.Email">
	            <input type="hidden" name="no_note" value="1">
	            <input type="hidden" name="no_shipping" value="0">
	            <INPUT TYPE="hidden" NAME="lc" VALUE="US">
                <INPUT TYPE="hidden" NAME="custom" VALUE="@ViewBag.OrderId">
	            <input type="hidden" name="return" value="@ViewBag.SiteURL/Login/Success">
	            <input type="hidden" name="cancel_return" value="@ViewBag.SiteURL/Login/ActiveAccount">
                <input type="hidden" name="notify_url" value="@ViewBag.SiteURL/PayPal/IPN">   
            </form>
            <script type="text/javascript">  
	            document._xclick.submit();  
            </script>            
        }
        else
        {
            using (Html.BeginForm("ActiveAccount", "Login", FormMethod.Post, new { id = "paymentForm" }))
            {
       
                 <input type="image" src="/images/paynow.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">            
            }
        }
       
    </div>
</div>
